<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  <div id="checkboxs">
  <input type="checkbox" id="a1"/>&emsp;&emsp;日期&emsp;&emsp;  &emsp; 姓名&emsp; &emsp; &emsp;  地址<br />
  <input type="checkbox"/>2022-3-18&emsp; &emsp; 胖子&emsp; &emsp; 垃圾堆<br />
  <input type="checkbox"/>2022-3-18&emsp; &emsp; 胖子&emsp; &emsp; 垃圾堆<br />
  <input type="checkbox"/>2022-3-18&emsp; &emsp; 胖子&emsp; &emsp; 垃圾堆<br />
  <input type="checkbox"/>2022-3-18&emsp; &emsp; 胖子&emsp; &emsp; 垃圾堆<br />
  
</div>
文本：<input type="text"><br/>
      下拉框： <select style="width: 200px;"value="请选择"><option value="请选择"></option></select> <br/>
       单选: <input type="radio"><input type="radio"><br/>
       多选: <input type="checkbox"><input type="checkbox"><br/>
文本：<input type="text"><br/>
       下拉框：   <select style="width: 200px;"value="请选择"><option value="请选择"></option></select> <br/>
       单选: <input type="radio"><input type="radio"><br/>

       <button>文本框</button>
       <button>下拉框</button>
       <button>单选</button>
       <button>多选</button>
       <button>多行文本</button>
      

</body>
<script>
 window.onload=function(){
 var sele=document.getElementById('a1');
 var checkbox=document.getElementById('checkboxs');
 var checked=checkbox.getElementsByTagName('input');
 a1.onclick=function(){
 for(i=0;i<checked.length;i++){
 checked[i].checked=true
 }
 } 
 }
</script>
</html>